package com.ruoyi.common.gscUtil.StudyUtil.MultiDataSourceUtil.DynamicSwitchingUtil;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;


/**
 *  1.定义动态数据源
 */
public class DynamicDataSource1 extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder2.getDataSourceKey();
    }
}